Draw(Texture, Rectangle?, Rectangle?)

Method

Namespace: Imagini.Drawing

Declared in: Imagini.Drawing.Graphics


Copies a portion of the texture to the current rendering target.

Syntax

public void Draw(
	Texture texture,
	Rectangle? srcRect,
	Rectangle? dstRect
)

Parameters

texture

Texture to copy

srcRect

Source rectangle (null for copying whole texture)

dstRect

Destination rectangle (null to fill the entire render target)


Back to index